home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 July / CHIP 2006-07.2.iso / program / web_gelistirme / easyphp1-7_setup.exe / {app} / safe / httpd-safe.conf < prev    next >
Encoding:
Text File  |  2003-09-11  |  36.9 KB  |  1,068 lines

  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file.  It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://www.apache.org/docs/> for detailed information about
  7. # the directives.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do.  They're here only as hints or reminders.  If you are unsure
  11. # consult the online docs. You have been warned.  
  12. #
  13. # After this file is processed, the server will look for and process
  14. # srm.conf and then access.conf
  15. # unless you have overridden these with ResourceConfig and/or
  16. # AccessConfig directives here.
  17. #
  18. # The configuration directives are grouped into three basic sections:
  19. #  1. Directives that control the operation of the Apache server process as a
  20. #     whole (the 'global environment').
  21. #  2. Directives that define the parameters of the 'main' or 'default' server,
  22. #     which responds to requests that aren't handled by a virtual host.
  23. #     These directives also provide default values for the settings
  24. #     of all virtual hosts.
  25. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  26. #     different IP addresses or hostnames and have them handled by the
  27. #     same Apache server process.
  28. #
  29. # Configuration and logfile names: If the filenames you specify for many
  30. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  31. # server will use that explicit path.  If the filenames do *not* begin
  32. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  33. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  34. # server as "/usr/local/apache/logs/foo.log".
  35. #
  36. # NOTE: Where filenames are specified, you must use forward slashes
  37. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  38. # If a drive letter is omitted, the drive on which Apache.exe is located
  39. # will be used by default.  It is recommended that you always supply
  40. # an explicit drive letter in absolute paths, however, to avoid
  41. # confusion.
  42. #
  43.  
  44. ### Section 1: Global Environment
  45. #
  46. # The directives in this section affect the overall operation of Apache,
  47. # such as the number of concurrent requests it can handle or where it
  48. # can find its configuration files.
  49. #
  50.  
  51. #
  52. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  53. # Unix platforms.
  54. #
  55. ServerType standalone
  56.  
  57. #
  58. # ServerRoot: The top of the directory tree under which the server's
  59. # configuration, error, and log files are kept.
  60. #
  61. ServerRoot "$path$/apache"
  62.  
  63. #
  64. # PidFile: The file in which the server should record its process
  65. # identification number when it starts.
  66. #
  67. PidFile logs/httpd.pid
  68.  
  69. #
  70. # ScoreBoardFile: File used to store internal server process information.
  71. # Not all architectures require this.  But if yours does (you'll know because
  72. # this file will be  created when you run Apache) then you *must* ensure that
  73. # no two invocations of Apache share the same scoreboard file.
  74. #
  75. ScoreBoardFile logs/apache_runtime_status
  76.  
  77. #
  78. # In the standard configuration, the server will process httpd.conf (this 
  79. # file, specified by the -f command line option), srm.conf, and access.conf 
  80. # in that order.  The latter two files are now distributed empty, as it is 
  81. # recommended that all directives be kept in a single file for simplicity.  
  82. # The commented-out values below are the built-in defaults.  You can have the 
  83. # server ignore these files altogether by using "/dev/null" (for Unix) or
  84. # "nul" (for Win32) for the arguments to the directives.
  85. #
  86. #ResourceConfig conf/srm.conf
  87. #AccessConfig conf/access.conf
  88.  
  89. #
  90. # Timeout: The number of seconds before receives and sends time out.
  91. #
  92. Timeout 300
  93.  
  94. #
  95. # KeepAlive: Whether or not to allow persistent connections (more than
  96. # one request per connection). Set to "Off" to deactivate.
  97. #
  98. KeepAlive On
  99.  
  100. #
  101. # MaxKeepAliveRequests: The maximum number of requests to allow
  102. # during a persistent connection. Set to 0 to allow an unlimited amount.
  103. # We recommend you leave this number high, for maximum performance.
  104. #
  105. MaxKeepAliveRequests 100
  106.  
  107. #
  108. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  109. # same client on the same connection.
  110. #
  111. KeepAliveTimeout 15
  112.  
  113. #
  114. # Apache on Win32 always creates one child process to handle requests.  If it
  115. # dies, another child process is created automatically.  Within the child
  116. # process multiple threads handle incoming requests.  The next two
  117. # directives control the behaviour of the threads and processes.
  118. #
  119.  
  120. #
  121. # MaxRequestsPerChild: the number of requests each child process is
  122. # allowed to process before the child dies.  The child will exit so
  123. # as to avoid problems after prolonged use when Apache (and maybe the
  124. # libraries it uses) leak memory or other resources.  On most systems, this
  125. # isn't really needed, but a few (such as Solaris) do have notable leaks
  126. # in the libraries.  For Win32, set this value to zero (unlimited)
  127. # unless advised otherwise.
  128. #
  129. # NOTE: This value does not include keepalive requests after the initial
  130. #       request per connection. For example, if a child process handles
  131. #       an initial request and 10 subsequent "keptalive" requests, it
  132. #       would only count as 1 request towards this limit.
  133. #
  134. MaxRequestsPerChild 0
  135.  
  136. #
  137. # Number of concurrent threads (i.e., requests) the server will allow.
  138. # Set this value according to the responsiveness of the server (more
  139. # requests active at once means they're all handled more slowly) and
  140. # the amount of system resources you'll allow the server to consume.
  141. #
  142. ThreadsPerChild 50
  143.  
  144. #
  145. # Listen: Allows you to bind Apache to specific IP addresses and/or
  146. # ports, in addition to the default. See also the <VirtualHost>
  147. # directive.
  148. #
  149. #Listen 3000
  150. #Listen 12.34.56.78:80
  151.  
  152. #
  153. # BindAddress: You can support virtual hosts with this option. This directive
  154. # is used to tell the server which IP address to listen to. It can either
  155. # contain "*", an IP address, or a fully qualified Internet domain name.
  156. # See also the <VirtualHost> and Listen directives.
  157. #
  158. #BindAddress *
  159.  
  160. #
  161. # Dynamic Shared Object (DSO) Support
  162. #
  163. # To be able to use the functionality of a module which was built as a DSO you
  164. # have to place corresponding `LoadModule' lines at this location so the
  165. # directives contained in it are actually available _before_ they are used.
  166. # Please read the file README.DSO in the Apache 1.3 distribution for more
  167. # details about the DSO mechanism and run `apache -l' for the list of already
  168. # built-in (statically linked and thus always available) modules in your Apache
  169. # binary.
  170. #
  171. # Note: The order in which modules are loaded is important.  Don't change
  172. # the order below without expert advice.
  173. #
  174. # Example:
  175. # LoadModule foo_module modules/mod_foo.so
  176. #
  177. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  178. #LoadModule mime_magic_module modules/mod_mime_magic.so
  179. #LoadModule status_module modules/mod_status.so
  180. #LoadModule info_module modules/mod_info.so
  181. #LoadModule speling_module modules/mod_speling.so
  182. #LoadModule rewrite_module modules/mod_rewrite.so
  183. LoadModule anon_auth_module modules/mod_auth_anon.so
  184. #LoadModule dbm_auth_module modules/mod_auth_dbm.so
  185. #LoadModule digest_auth_module modules/mod_auth_digest.so
  186. #LoadModule digest_module modules/mod_digest.so
  187. #LoadModule proxy_module modules/mod_proxy.so
  188. #LoadModule cern_meta_module modules/mod_cern_meta.so
  189. #LoadModule expires_module modules/mod_expires.so
  190. #LoadModule headers_module modules/mod_headers.so
  191. #LoadModule usertrack_module modules/mod_usertrack.so
  192. #LoadModule unique_id_module modules/mod_unique_id.so
  193.  
  194. LoadModule php4_module "$path$/php/php4apache.dll"
  195.  
  196. #
  197. #  Reconstruction of the complete module list from all available modules
  198. #  (static and shared ones) to achieve correct module execution order.
  199. #
  200. # The modules listed below, without a corresponding LoadModule directive,
  201. # are static bound into the standard Apache binary distribution for Windows.
  202. #
  203. # Note: The order in which modules are loaded is important.  Don't change
  204. # the order below without expert advice.
  205. #
  206. # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
  207. ClearModuleList
  208. #AddModule mod_vhost_alias.c
  209. AddModule mod_env.c
  210. AddModule mod_log_config.c
  211. #AddModule mod_mime_magic.c
  212. AddModule mod_mime.c
  213. AddModule mod_negotiation.c
  214. #AddModule mod_status.c
  215. #AddModule mod_info.c
  216. AddModule mod_include.c
  217. AddModule mod_autoindex.c
  218. AddModule mod_dir.c
  219. AddModule mod_isapi.c
  220. AddModule mod_cgi.c
  221. AddModule mod_asis.c
  222. AddModule mod_imap.c
  223. AddModule mod_actions.c
  224. #AddModule mod_speling.c
  225. AddModule mod_userdir.c
  226. AddModule mod_alias.c
  227. #AddModule mod_rewrite.c
  228. AddModule mod_access.c
  229. AddModule mod_auth.c
  230. AddModule mod_auth_anon.c
  231. #AddModule mod_auth_dbm.c
  232. #AddModule mod_auth_digest.c
  233. #AddModule mod_digest.c
  234. #AddModule mod_proxy.c
  235. #AddModule mod_cern_meta.c
  236. #AddModule mod_expires.c
  237. #AddModule mod_headers.c
  238. #AddModule mod_usertrack.c
  239. #AddModule mod_unique_id.c
  240. AddModule mod_so.c
  241. AddModule mod_setenvif.c
  242. AddModule mod_php4.c
  243.  
  244. #
  245. # ExtendedStatus controls whether Apache will generate "full" status
  246. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  247. # Off) when the "server-status" handler is called. The default is Off.
  248. #
  249. #ExtendedStatus On
  250.  
  251. ### Section 2: 'Main' server configuration
  252. #
  253. # The directives in this section set up the values used by the 'main'
  254. # server, which responds to any requests that aren't handled by a
  255. # <VirtualHost> definition.  These values also provide defaults for
  256. # any <VirtualHost> containers you may define later in the file.
  257. #
  258. # All of these directives may appear inside <VirtualHost> containers,
  259. # in which case these default settings will be overridden for the
  260. # virtual host being defined.
  261. #
  262.  
  263. #
  264. # Port: The port to which the standalone server listens.  Certain firewall
  265. # products must be configured before Apache can listen to a specific port.
  266. # Other running httpd servers will also interfere with this port.  Disable
  267. # all firewall, security, and other services if you encounter problems.
  268. # To help diagnose problems use the Windows NT command NETSTAT -a
  269. #
  270. Port 80
  271.  
  272. #
  273. # ServerAdmin: Your address, where problems with the server should be
  274. # e-mailed.  This address appears on some server-generated pages, such
  275. # as error documents.
  276. #
  277. ServerAdmin admin@localhost
  278.  
  279. #
  280. # ServerName allows you to set a host name which is sent back to clients for
  281. # your server if it's different than the one the program would get (i.e., use
  282. # "www" instead of the host's real name).
  283. #
  284. # Note: You cannot just invent host names and hope they work. The name you 
  285. # define here must be a valid DNS name for your host. If you don't understand
  286. # this, ask your network administrator.
  287. # If your host doesn't have a registered DNS name, enter its IP address here.
  288. # You will have to access it by its address (e.g., http://123.45.67.89/)
  289. # anyway, and this will make redirections work in a sensible way.
  290. #
  291. # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
  292. # machine always knows itself by this address. If you use Apache strictly for 
  293. # local testing and development, you may use 127.0.0.1 as the server name.
  294. #
  295. ServerName localhost
  296.  
  297.  
  298. #
  299. # DocumentRoot: The directory out of which you will serve your
  300. # documents. By default, all requests are taken from this directory, but
  301. # symbolic links and aliases may be used to point to other locations.
  302. #
  303. DocumentRoot "$path$/www"
  304.  
  305. #
  306. # Each directory to which Apache has access, can be configured with respect
  307. # to which services and features are allowed and/or disabled in that
  308. # directory (and its subdirectories). 
  309. #
  310. # First, we configure the "default" to be a very restrictive set of 
  311. # permissions.  
  312. #
  313. <Directory />
  314.     Options FollowSymLinks Indexes
  315.     AllowOverride All
  316. </Directory>
  317.  
  318. #
  319. # Note that from this point forward you must specifically allow
  320. # particular features to be enabled - so if something's not working as
  321. # you might expect, make sure that you have specifically enabled it
  322. # below.
  323. #
  324.  
  325. #
  326. # This should be changed to whatever you set DocumentRoot to.
  327. #
  328. <Directory "$path$/www">
  329.  
  330. #
  331. # This may also be "None", "All", or any combination of "Indexes",
  332. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  333. #
  334. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  335. # doesn't give it to you.
  336. #
  337.     Options Indexes FollowSymLinks Includes
  338.  
  339. #
  340. # This controls which options the .htaccess files in directories can
  341. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  342. # "AuthConfig", and "Limit"
  343. #
  344.     AllowOverride All
  345.  
  346. #
  347. # Controls who can get stuff from this server.
  348. #
  349.     Order allow,deny
  350.     Allow from all
  351. </Directory>
  352.  
  353. #
  354. # UserDir: The name of the directory which is appended onto a user's home
  355. # directory if a ~user request is received.
  356. #
  357. # Under Win32, we do not currently try to determine the home directory of
  358. # a Windows login, so a format such as that below needs to be used.  See
  359. # the UserDir documentation for details.
  360. #
  361. <IfModule mod_userdir.c>
  362.     UserDir "$path$/apache/users/"
  363. </IfModule>
  364.  
  365. #
  366. # Control access to UserDir directories.  The following is an example
  367. # for a site where these directories are restricted to read-only.
  368. #
  369. #<Directory "$path$/apache/users">
  370. #    AllowOverride FileInfo AuthConfig Limit
  371. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  372. #    <Limit GET POST OPTIONS PROPFIND>
  373. #        Order allow,deny
  374. #        Allow from all
  375. #    </Limit>
  376. #    <LimitExcept GET POST OPTIONS PROPFIND>
  377. #        Order deny,allow
  378. #        Deny from all
  379. #    </LimitExcept>
  380. #</Directory>
  381.  
  382. #
  383. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  384. # directory index.  Separate multiple entries with spaces.
  385. #
  386. <IfModule mod_dir.c>
  387.     DirectoryIndex index.html index.shtml index.wml index.pwml index.php index.php3 index.php4
  388. </IfModule>
  389.  
  390. #
  391. # AccessFileName: The name of the file to look for in each directory
  392. # for access control information.
  393. #
  394. AccessFileName .htaccess
  395.  
  396. #
  397. # The following lines prevent .htaccess files from being viewed by
  398. # Web clients.  Since .htaccess files often contain authorization
  399. # information, access is disallowed for security reasons.  Comment
  400. # these lines out if you want Web visitors to see the contents of
  401. # .htaccess files.  If you change the AccessFileName directive above,
  402. # be sure to make the corresponding changes here.
  403. #
  404. # Also, folks tend to use names such as .htpasswd for password
  405. # files, so this will protect those as well.
  406. #
  407. <Files ~ "^\.ht">
  408.     Order allow,deny
  409.     Deny from all
  410.     Satisfy All
  411. </Files>
  412.  
  413. #
  414. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  415. # document that was negotiated on the basis of content. This asks proxy
  416. # servers not to cache the document. Uncommenting the following line disables
  417. # this behavior, and proxies will be allowed to cache the documents.
  418. #
  419. #CacheNegotiatedDocs
  420.  
  421. #
  422. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  423. # Apache needs to construct a self-referencing URL (a URL that refers back
  424. # to the server the response is coming from) it will use ServerName and
  425. # Port to form a "canonical" name.  With this setting off, Apache will
  426. # use the hostname:port that the client supplied, when possible.  This
  427. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  428. #
  429. UseCanonicalName Off
  430.  
  431. #
  432. # TypesConfig describes where the mime.types file (or equivalent) is
  433. # to be found.
  434. #
  435. <IfModule mod_mime.c>
  436.     TypesConfig conf/mime.types
  437. </IfModule>
  438.  
  439. #
  440. # DefaultType is the default MIME type the server will use for a document
  441. # if it cannot otherwise determine one, such as from filename extensions.
  442. # If your server contains mostly text or HTML documents, "text/plain" is
  443. # a good value.  If most of your content is binary, such as applications
  444. # or images, you may want to use "application/octet-stream" instead to
  445. # keep browsers from trying to display binary files as though they are
  446. # text.
  447. #
  448. DefaultType text/plain
  449.  
  450. #
  451. # The mod_mime_magic module allows the server to use various hints from the
  452. # contents of the file itself to determine its type.  The MIMEMagicFile
  453. # directive tells the module where the hint definitions are located.
  454. # mod_mime_magic is not part of the default server (you have to add
  455. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  456. # Environment' section], or recompile the server and include mod_mime_magic
  457. # as part of the configuration), so it's enclosed in an <IfModule> container.
  458. # This means that the MIMEMagicFile directive will only be processed if the
  459. # module is part of the server.
  460. #
  461. <IfModule mod_mime_magic.c>
  462.     MIMEMagicFile conf/magic
  463. </IfModule>
  464.  
  465. #
  466. # HostnameLookups: Log the names of clients or just their IP addresses
  467. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  468. # The default is off because it'd be overall better for the net if people
  469. # had to knowingly turn this feature on, since enabling it means that
  470. # each client request will result in AT LEAST one lookup request to the
  471. # nameserver.
  472. #
  473. HostnameLookups Off
  474.  
  475. #
  476. # ErrorLog: The location of the error log file.
  477. # If you do not specify an ErrorLog directive within a <VirtualHost>
  478. # container, error messages relating to that virtual host will be
  479. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  480. # container, that host's errors will be logged there and not here.
  481. #
  482. ErrorLog logs/error.log
  483.  
  484. #
  485. # LogLevel: Control the number of messages logged to the error.log.
  486. # Possible values include: debug, info, notice, warn, error, crit,
  487. # alert, emerg.
  488. #
  489. LogLevel warn
  490.  
  491. #
  492. # The following directives define some format nicknames for use with
  493. # a CustomLog directive (see below).
  494. #
  495. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  496. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  497. LogFormat "%{Referer}i -> %U" referer
  498. LogFormat "%{User-agent}i" agent
  499.  
  500. #
  501. # The location and format of the access logfile (Common Logfile Format).
  502. # If you do not define any access logfiles within a <VirtualHost>
  503. # container, they will be logged here.  Contrariwise, if you *do*
  504. # define per-<VirtualHost> access logfiles, transactions will be
  505. # logged therein and *not* in this file.
  506. #
  507. CustomLog logs/access.log common
  508.  
  509. #
  510. # If you would like to have agent and referer logfiles, uncomment the
  511. # following directives.
  512. #
  513. #CustomLog logs/referer.log referer
  514. #CustomLog logs/agent.log agent
  515.  
  516. #
  517. # If you prefer a single logfile with access, agent, and referer information
  518. # (Combined Logfile Format) you can use the following directive.
  519. #
  520. #CustomLog logs/access.log combined
  521.  
  522. #
  523. # Optionally add a line containing the server version and virtual host
  524. # name to server-generated pages (error documents, FTP directory listings,
  525. # mod_status and mod_info output etc., but not CGI generated documents).
  526. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  527. # Set to one of:  On | Off | EMail
  528. #
  529. ServerSignature Email
  530.  
  531. # Apache parses all CGI scripts for the shebang line by default.
  532. # This comment line, the first line of the script, consists of the symbols
  533. # pound (#) and exclamation (!) followed by the path of the program that 
  534. # can execute this specific script.  For a perl script, with perl.exe in
  535. # the C:\Program Files\Perl directory, the shebang line should be:
  536.  
  537.    #!c:/program files/perl/perl
  538.  
  539. # Note you _must_not_ indent the actual shebang line, and it must be the
  540. # first line of the file.  Of course, CGI processing must be enabled by 
  541. # the appropriate ScriptAlias or Options ExecCGI directives for the files 
  542. # or directory in question.
  543. #
  544. # However, Apache on Windows allows either the Unix behavior above, or can
  545. # use the Registry to match files by extention.  The command to execute 
  546. # a file of this type is retrieved from the registry by the same method as 
  547. # the Windows Explorer would use to handle double-clicking on a file.
  548. # These script actions can be configured from the Windows Explorer View menu, 
  549. # 'Folder Options', and reviewing the 'File Types' tab.  Clicking the Edit
  550. # button allows you to modify the Actions, of which Apache 1.3 attempts to
  551. # perform the 'Open' Action, and failing that it will try the shebang line.
  552. # This behavior is subject to change in Apache release 2.0.
  553. #
  554. # Each mechanism has it's own specific security weaknesses, from the means
  555. # to run a program you didn't intend the website owner to invoke, and the
  556. # best method is a matter of great debate.
  557. #
  558. # To enable the this Windows specific behavior (and therefore -disable- the
  559. # equivilant Unix behavior), uncomment the following directive:
  560. #
  561. #ScriptInterpreterSource registry
  562. #
  563. # The directive above can be placed in individual <Directory> blocks or the
  564. # .htaccess file, with either the 'registry' (Windows behavior) or 'script' 
  565. # (Unix behavior) option, and will override this server default option.
  566. #
  567.  
  568. #
  569. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  570. # Alias fakename realname
  571. #
  572. <IfModule mod_alias.c>
  573.  
  574.     #
  575.     # Note that if you include a trailing / on fakename then the server will
  576.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  577.     # example, only "/icons/".  If the fakename is slash-terminated, then the 
  578.     # realname must also be slash terminated, and if the fakename omits the 
  579.     # trailing slash, the realname must also omit it.
  580.     #
  581.     Alias /icons/ "$path$/apache/icons/"
  582.  
  583.     <Directory "$path$/apache/icons">
  584.         Options Indexes MultiViews
  585.         AllowOverride None
  586.         Order allow,deny
  587.         Allow from all
  588.     </Directory>
  589.  
  590.  
  591.     Alias /images_easyphp/ "$path$/home/images_easyphp/"
  592.  
  593.     <Directory "$path$/home/images_easyphp">
  594.         Options Indexes MultiViews
  595.         AllowOverride None
  596.         Order allow,deny
  597.         Allow from all
  598.     </Directory>
  599.  
  600.  
  601.     Alias /mysql/ "$path$/phpmyadmin/"
  602.  
  603.     <Directory "$path$/phpmyadmin">
  604.         Options FollowSymLinks Indexes
  605.         AllowOverride None
  606.         Order deny,allow
  607.         allow from 127.0.0.1
  608.         deny from all
  609.     </Directory>
  610.  
  611.  
  612.     Alias /home/ "$path$/home/"
  613.  
  614.     <Directory "$path$/home">
  615.         Options FollowSymLinks Indexes
  616.         AllowOverride None
  617.         Order deny,allow
  618.         allow from 127.0.0.1
  619.         deny from all
  620.     </Directory>
  621.  
  622.  
  623.     # This Alias will project the on-line documentation tree under /manual/
  624.     # even if you change the DocumentRoot. Comment it if you don't want to 
  625.     # provide access to the on-line documentation.
  626.     #
  627.     #Alias /manual/ "$path$/apache/htdocs/manual/"
  628.  
  629.     #<Directory "$path$/apache/htdocs/manual">
  630.     #    Options Indexes FollowSymlinks MultiViews
  631.     #    AllowOverride None
  632.     #    Order allow,deny
  633.     #    Allow from all
  634.     #</Directory>
  635.  
  636.     #
  637.     # ScriptAlias: This controls which directories contain server scripts.
  638.     # ScriptAliases are essentially the same as Aliases, except that
  639.     # documents in the realname directory are treated as applications and
  640.     # run by the server when requested rather than as documents sent to the client.
  641.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  642.     # Alias.
  643.     #
  644.     ScriptAlias /cgi-bin/ "$path$/cgi-bin/"
  645.  
  646.     #
  647.     # "$path$/apache/cgi-bin" should be changed to whatever your ScriptAliased
  648.     # CGI directory exists, if you have that configured.
  649.     #
  650.     <Directory "$path$/cgi-bin">
  651.         AllowOverride None
  652.         Options None
  653.         Order allow,deny
  654.         Allow from all
  655.     </Directory>
  656.  
  657. </IfModule>
  658. # End of aliases.
  659.  
  660. #
  661. # Redirect allows you to tell clients about documents which used to exist in
  662. # your server's namespace, but do not anymore. This allows you to tell the
  663. # clients where to look for the relocated document.
  664. # Format: Redirect old-URI new-URL
  665. #
  666.  
  667. #
  668. # Directives controlling the display of server-generated directory listings.
  669. #
  670. <IfModule mod_autoindex.c>
  671.  
  672.     #
  673.     # FancyIndexing is whether you want fancy directory indexing or standard
  674.     #
  675.     # Note, add the option TrackModified to the IndexOptions default list only
  676.     # if all indexed directories reside on NTFS volumes.  The TrackModified flag
  677.     # will report the Last-Modified date to assist caches and proxies to properly
  678.     # track directory changes, but it does _not_ work on FAT volumes.
  679.     #
  680.     IndexOptions FancyIndexing
  681.  
  682.     #
  683.     # AddIcon* directives tell the server which icon to show for different
  684.     # files or filename extensions.  These are only displayed for
  685.     # FancyIndexed directories.
  686.     #
  687.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  688.  
  689.     AddIconByType (TXT,/icons/text.gif) text/*
  690.     AddIconByType (IMG,/icons/image2.gif) image/*
  691.     AddIconByType (SND,/icons/sound2.gif) audio/*
  692.     AddIconByType (VID,/icons/movie.gif) video/*
  693.  
  694.     AddIcon /icons/binary.gif .bin .exe
  695.     AddIcon /icons/binhex.gif .hqx
  696.     AddIcon /icons/tar.gif .tar
  697.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  698.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  699.     AddIcon /icons/a.gif .ps .ai .eps
  700.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  701.     AddIcon /icons/text.gif .txt
  702.     AddIcon /icons/c.gif .c
  703.     AddIcon /icons/p.gif .pl .py
  704.     AddIcon /icons/f.gif .for
  705.     AddIcon /icons/dvi.gif .dvi
  706.     AddIcon /icons/uuencoded.gif .uu
  707.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  708.     AddIcon /icons/tex.gif .tex
  709.     AddIcon /icons/bomb.gif core
  710.  
  711.     AddIcon /icons/back.gif ..
  712.     AddIcon /icons/hand.right.gif README
  713.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  714.     AddIcon /icons/blank.gif ^^BLANKICON^^
  715.  
  716.     #
  717.     # DefaultIcon is which icon to show for files which do not have an icon
  718.     # explicitly set.
  719.     #
  720.     DefaultIcon /icons/unknown.gif
  721.  
  722.     #
  723.     # AddDescription allows you to place a short description after a file in
  724.     # server-generated indexes.  These are only displayed for FancyIndexed
  725.     # directories.
  726.     # Format: AddDescription "description" filename
  727.     #
  728.     AddDescription "GZIP compressed document" .gz
  729.     AddDescription "tar archive" .tar
  730.     AddDescription "GZIP compressed tar archive" .tgz
  731.     AddDescription "ZIP archive" .zip
  732.     AddDescription "CAB archive" .cab
  733.     AddDescription "Win32 Executable" .exe
  734.  
  735.     #
  736.     # ReadmeName is the name of the README file the server will look for by
  737.     # default, and append to directory listings.
  738.     #
  739.     # HeaderName is the name of a file which should be prepended to
  740.     # directory indexes. 
  741.     #
  742.     # If MultiViews are amongst the Options in effect, the server will
  743.     # first look for name.html and include it if found.  If name.html
  744.     # doesn't exist, the server will then look for name.txt and include
  745.     # it as plaintext if found.
  746.     #
  747.     ReadmeName README
  748.     HeaderName HEADER
  749.  
  750.     #
  751.     # IndexIgnore is a set of filenames which directory indexing should ignore
  752.     # and not include in the listing.  Shell-style wildcarding is permitted.
  753.     #
  754.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  755.  
  756. </IfModule>
  757. # End of indexing directives.
  758.  
  759. #
  760. # Document types.
  761. #
  762. <IfModule mod_mime.c>
  763.  
  764.     #
  765.     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  766.     # information on the fly. Note: Not all browsers support this.
  767.     # Despite the name similarity, the following Add* directives have nothing
  768.     # to do with the FancyIndexing customization directives above.
  769.     #
  770.     AddEncoding x-compress Z
  771.     AddEncoding x-gzip gz tgz
  772.     #
  773.     # AddLanguage allows you to specify the language of a document. You can
  774.     # then use content negotiation to give a browser a file in a language
  775.     # it can understand.
  776.     #
  777.     # Note 1: The suffix does not have to be the same as the language
  778.     # keyword --- those with documents in Polish (whose net-standard
  779.     # language code is pl) may wish to use "AddLanguage pl .po" to
  780.     # avoid the ambiguity with the common suffix for perl scripts.
  781.     #
  782.     # Note 2: The example entries below illustrate that in quite
  783.     # some cases the two character 'Language' abbreviation is not
  784.     # identical to the two character 'Country' code for its country,
  785.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  786.     #
  787.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  788.     # specifier. But there is 'work in progress' to fix this and get
  789.     # the reference data for rfc1766 cleaned up.
  790.     #
  791.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  792.     # French (fr) - German (de) - Greek-Modern (el)
  793.     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
  794.     # Portugese (pt) - Luxembourgeois* (ltz)
  795.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  796.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  797.     # Russian (ru)
  798.     #
  799.     AddLanguage da .dk
  800.     AddLanguage nl .nl
  801.     AddLanguage en .en
  802.     AddLanguage et .ee
  803.     AddLanguage fr .fr
  804.     AddLanguage de .de
  805.     AddLanguage el .el
  806.     AddLanguage he .he
  807.     AddCharset ISO-8859-8 .iso8859-8
  808.     AddLanguage it .it
  809.     AddLanguage ja .ja
  810.     AddCharset ISO-2022-JP .jis
  811.     AddLanguage kr .kr
  812.     AddCharset ISO-2022-KR .iso-kr
  813.     AddLanguage nn .nn
  814.     AddLanguage no .no
  815.     AddLanguage pl .po
  816.     AddCharset ISO-8859-2 .iso-pl
  817.     AddLanguage pt .pt
  818.     AddLanguage pt-br .pt-br
  819.     AddLanguage ltz .lu
  820.     AddLanguage ca .ca
  821.     AddLanguage es .es
  822.     AddLanguage sv .sv
  823.     AddLanguage cz .cz
  824.     AddLanguage ru .ru
  825.     AddLanguage tw .tw
  826.     AddLanguage zh-tw .tw
  827.     AddCharset Big5         .Big5    .big5
  828.     AddCharset WINDOWS-1251 .cp-1251
  829.     AddCharset CP866        .cp866
  830.     AddCharset ISO-8859-5   .iso-ru
  831.     AddCharset KOI8-R       .koi8-r
  832.     AddCharset UCS-2        .ucs2
  833.     AddCharset UCS-4        .ucs4
  834.     AddCharset UTF-8        .utf8
  835.  
  836.     # LanguagePriority allows you to give precedence to some languages
  837.     # in case of a tie during content negotiation.
  838.     #
  839.     # Just list the languages in decreasing order of preference. We have
  840.     # more or less alphabetized them here. You probably want to change this.
  841.     #
  842.     <IfModule mod_negotiation.c>
  843.         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
  844.     </IfModule>
  845.  
  846.     #
  847.     # AddType allows you to tweak mime.types without actually editing it, or to
  848.     # make certain files to be certain types.
  849.     #
  850.     AddType application/x-tar .tgz
  851.     AddType image/x-icon .ico
  852.     AddType application/vnd.wap.wmlc .wmlc
  853.     AddType application/x-httpd-php .phtml .pwml .php3 .php4 .php .php2 .inc
  854.     AddType text/vnd.wap.wml .wml
  855.     AddType text/vnd.wap.wmlscript .wmls
  856.     AddType text/vnd.wap.wmlscriptc .wmlsc
  857.     AddType image/vnd.wap.wbmp .wbmp
  858.  
  859.     #
  860.     # AddHandler allows you to map certain file extensions to "handlers",
  861.     # actions unrelated to filetype. These can be either built into the server
  862.     # or added with the Action command (see below)
  863.     #
  864.     # If you want to use server side includes, or CGI outside
  865.     # ScriptAliased directories, uncomment the following lines.
  866.     #
  867.     # To use CGI scripts:
  868.     #
  869.     AddHandler cgi-script .cgi
  870.  
  871.     #
  872.     # To use server-parsed HTML files
  873.     #
  874.     AddType text/html .shtml
  875.     AddHandler server-parsed .shtml
  876.  
  877.     #
  878.     # Uncomment the following line to enable Apache's send-asis HTTP file
  879.     # feature
  880.     #
  881.     #AddHandler send-as-is asis
  882.  
  883.     #
  884.     # If you wish to use server-parsed imagemap files, use
  885.     #
  886.     #AddHandler imap-file map
  887.  
  888.     #
  889.     # To enable type maps, you might want to use
  890.     #
  891.     #AddHandler type-map var
  892.  
  893. </IfModule>
  894. # End of document types.
  895.  
  896. #
  897. # Action lets you define media types that will execute a script whenever
  898. # a matching file is called. This eliminates the need for repeated URL
  899. # pathnames for oft-used CGI file processors.
  900. # Format: Action media/type /cgi-script/location
  901. # Format: Action handler-name /cgi-script/location
  902. #
  903.  
  904. #
  905. # MetaDir: specifies the name of the directory in which Apache can find
  906. # meta information files. These files contain additional HTTP headers
  907. # to include when sending the document
  908. #
  909. #MetaDir .web
  910.  
  911. #
  912. # MetaSuffix: specifies the file name suffix for the file containing the
  913. # meta information.
  914. #
  915. #MetaSuffix .meta
  916.  
  917. #
  918. # Customizable error response (Apache style)
  919. #  these come in three flavors
  920. #
  921. #    1) plain text
  922. #ErrorDocument 500 "The server made a boo boo.
  923. #  n.b.  the single leading (") marks it as text, it does not get output
  924. #
  925. #    2) local redirects
  926. #ErrorDocument 404 /missing.html
  927. #  to redirect to local URL /missing.html
  928. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  929. #  N.B.: You can redirect to a script or a document using server-side-includes.
  930. #
  931. #    3) external redirects
  932. #ErrorDocument 402 http://some.other-server.com/subscription_info.html
  933. #  N.B.: Many of the environment variables associated with the original
  934. #  request will *not* be available to such a script.
  935.  
  936. #
  937. # Customize behaviour based on the browser
  938. #
  939. <IfModule mod_setenvif.c>
  940.  
  941.     #
  942.     # The following directives modify normal HTTP response behavior.
  943.     # The first directive disables keepalive for Netscape 2.x and browsers that
  944.     # spoof it. There are known problems with these browser implementations.
  945.     # The second directive is for Microsoft Internet Explorer 4.0b2
  946.     # which has a broken HTTP/1.1 implementation and does not properly
  947.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  948.     #
  949.     BrowserMatch "Mozilla/2" nokeepalive
  950.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  951.  
  952.     #
  953.     # The following directive disables HTTP/1.1 responses to browsers which
  954.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  955.     # basic 1.1 response.
  956.     #
  957.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  958.     BrowserMatch "Java/1\.0" force-response-1.0
  959.     BrowserMatch "JDK/1\.0" force-response-1.0
  960.  
  961. </IfModule>
  962. # End of browser customization directives
  963.  
  964. #
  965. # Allow server status reports, with the URL of http://servername/server-status
  966. # Change the "localhost" to match your domain to enable.
  967. #
  968. #<Location /server-status>
  969. #    SetHandler server-status
  970. #    Order deny,allow
  971. #    Deny from all
  972. #    Allow from localhost
  973. #</Location>
  974.  
  975. #
  976. # Allow remote server configuration reports, with the URL of
  977. # http://servername/server-info (requires that mod_info.c be loaded).
  978. # Change the "localhost" to match your domain to enable.
  979. #
  980. #<Location /server-info>
  981. #    SetHandler server-info
  982. #    Order deny,allow
  983. #    Deny from all
  984. #    Allow from localhost
  985. #</Location>
  986.  
  987. #
  988. # There have been reports of people trying to abuse an old bug from pre-1.1
  989. # days.  This bug involved a CGI script distributed as a part of Apache.
  990. # By uncommenting these lines you can redirect these attacks to a logging 
  991. # script on phf.apache.org.  Or, you can record them yourself, using the script
  992. # support/phf_abuse_log.cgi.
  993. #
  994. #<Location /cgi-bin/phf*>
  995. #    Deny from all
  996. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  997. #</Location>
  998.  
  999. #
  1000. # Proxy Server directives. Uncomment the following lines to
  1001. # enable the proxy server:
  1002. #
  1003. #<IfModule mod_proxy.c>
  1004. #    ProxyRequests On
  1005.  
  1006. #    <Directory proxy:*>
  1007. #        Order deny,allow
  1008. #        Deny from all
  1009. #        Allow from localhost
  1010. #    </Directory>
  1011.  
  1012.     #
  1013.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  1014.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  1015.     # Set to one of: Off | On | Full | Block
  1016.     #
  1017. #    ProxyVia On
  1018.  
  1019.     #
  1020.     # To enable the cache as well, edit and uncomment the following lines:
  1021.     # (no cacheing without CacheRoot)
  1022.     #
  1023. #    CacheRoot "C:/Program Files/Apache Group/Apache/proxy"
  1024. #    CacheSize 5
  1025. #    CacheGcInterval 4
  1026. #    CacheMaxExpire 24
  1027. #    CacheLastModifiedFactor 0.1
  1028. #    CacheDefaultExpire 1
  1029. #    NoCache a-domain.com another-domain.edu joes.garage-sale.com
  1030.  
  1031. #</IfModule>
  1032. # End of proxy directives.
  1033.  
  1034. ### Section 3: Virtual Hosts
  1035. #
  1036. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  1037. # machine you can setup VirtualHost containers for them. Most configurations
  1038. # use only name-based virtual hosts so the server doesn't need to worry about
  1039. # IP addresses. This is indicated by the asterisks in the directives below.
  1040. #
  1041. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  1042. # for further details before you try to setup virtual hosts.
  1043. #
  1044. # You may use the command line option '-S' to verify your virtual host
  1045. # configuration.
  1046.  
  1047. #
  1048. # Use name-based virtual hosting.
  1049. #
  1050. #NameVirtualHost *
  1051.  
  1052. #
  1053. # VirtualHost example:
  1054. # Almost any Apache directive may go into a VirtualHost container.
  1055. # The first VirtualHost section is used for requests without a known
  1056. # server name.
  1057. #
  1058. #<VirtualHost *>
  1059. #    ServerAdmin webmaster@dummy-host.example.com
  1060. #    DocumentRoot /www/docs/dummy-host.example.com
  1061. #    ServerName dummy-host.example.com
  1062. #    ErrorLog logs/dummy-host.example.com-error_log
  1063. #    CustomLog logs/dummy-host.example.com-access_log common
  1064. #</VirtualHost>
  1065.  
  1066. #alias
  1067. #alias